package com.github.xuemingyu.springboot.jkfaststart.controller.admin.view.role;

import com.bidanet.springmvc.demo.jkbuilder.annotation.*;
import com.bidanet.springmvc.demo.jkbuilder.annotation.type.JkButtonType;
import lombok.Data;

@Data
@JkTable
@JkDataSource(url = "./data")
public class RoleTable {

    private Long id;
    @JkColumn(title = "角色")
    private String name;
    @JkColumn(title = "角色信息")
    private String info;
    @JkColumn(title = "操作")
    @JkToolBar(btns = {
            @JkButton(value = "权限编辑",type = JkButtonType.dialog,url = "/admin/role/editPermission?id={id}"),
            @JkButton(value = "编辑",type = JkButtonType.dialog,url = "/admin/role/edit?id={id}"),

       /*     @JkButton(value = "删除",type = JkButtonType.confirm,
                    option = "'确定删除此角色'"
                    ,cssClass = "layui-btn-danger"
                    ,url = "./delete?id={id}")*/
    })
    private String tool;
}
